import request from '@/utils/request'

// 查询sportsmanMatch列表
export function listSportsmanMatch(query) {
    return request({
        url: '/training/sportsmanMatch/list',
        method: 'get',
        params: query
    })
}

// 查询赛事姓名集合
export function listSportsmanName() {
    return request({
        url: '/training/sportsmanMatch/queryNameList',
        method: 'get',
    })
}

// 查询sportsmanMatch详细
export function getSportsmanMatch(id) {
    return request({
        url: '/training/sportsmanMatch/' + id,
        method: 'get'
    })
}

// 新增sportsmanMatch
export function addSportsmanMatch(data) {
    return request({
        url: '/training/sportsmanMatch',
        method: 'post',
        data: data
    })
}

// 修改sportsmanMatch
export function updateSportsmanMatch(data) {
    return request({
        url: '/training/sportsmanMatch',
        method: 'put',
        data: data
    })
}

// 删除sportsmanMatch
export function delSportsmanMatch(id) {
    return request({
        url: '/training/sportsmanMatch/' + id,
        method: 'delete'
    })
}

// 导出sportsmanMatch
export function exportSportsmanMatch(query) {
    return request({
        url: '/training/sportsmanMatch/export',
        method: 'get',
        params: query
    })
}